package com.rub.android.dto

import com.google.gson.annotations.SerializedName

data class UserInfo constructor(
    val admin: Boolean = false,
    val chapterTops: List<String>? = null,
    val coinCount: Int = 0,
    val collectIds: List<String>? = null,
    val email: String? = null,
    val icon: String? = null,
    val id: Int = 0,
    val nickname: String? = null,
    val password: String? = null,
    val publicName: String? = null,
    val token: String? = null,
    val type: Int = 0,
    val username: String? = null
) {

}

/**
 * 使用gson注解SerializedName起自己想要起的属性名字
 */
data class JsonResult constructor(
    val data: UserInfo? = null,
    @SerializedName("errorCode")
    val code: Int = 0,
    @SerializedName("errorMsg")
    val msg: String? = null
) {

}
